package tcln.sors.model.core.type;

import javax.persistence.Embeddable;

/**
 * @author Truong Chau Lien Ngoc (lienngoc@gmail.com)
 */
@Embeddable
public class Size {
    private Double width;
    private Double height;

    /**
     * constructs this size with no information.
     */
    public Size() {
        //
    }

    /**
     * constructs this size with width and height.
     * 
     * @param width
     * @param height
     */
    public Size(Double width, Double height) {
        super();
        this.width = width;
        this.height = height;
    }

    /**
     * Returns current value of {@link #width}.
     * 
     * @return the {@link #width}.
     */
    public Double getWidth() {
        return width;
    }

    /**
     * Sets new value for {@link #width}.
     * 
     * @param width
     *            the new width to set
     */
    public void setWidth(Double width) {
        this.width = width;
    }

    /**
     * Returns current value of {@link #height}.
     * 
     * @return the {@link #height}.
     */
    public Double getHeight() {
        return height;
    }

    /**
     * Sets new value for {@link #height}.
     * 
     * @param height
     *            the new height to set
     */
    public void setHeight(Double height) {
        this.height = height;
    }
}
